package com.yangxd.hospital.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangxd
 * @since 2021-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
@TableName(value = "users")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "科室ID")
    private Integer departmentId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "性别 0女 1男")
    private Integer gender;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "账号是否被禁用 默认为1（可用）")
    private Integer enabled;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "类型 0普通 1专家")
    private Integer type;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "挂号时段")
    private String appointment;

    @ApiModelProperty(value = "既往病史")
    private String medicalHistory;

    @ApiModelProperty(value = "是否被删除 默认为0（未删）")
    private Integer deleted;

    @ApiModelProperty(value = "挂号单序号")
    private Integer registrationId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "token令牌")
    private String token;

    @ApiModelProperty(value = "过敏物")
    private String allergy;

    @ApiModelProperty(value = "医疗特长")
    private String speciality;

    @ApiModelProperty(value = "科室名称")
    private String departmentName;

    @ApiModelProperty(value = "个人简介")
    private String introduction;

    @ApiModelProperty(value = "被预约的人数")
    private Integer number;

    @ApiModelProperty(value = "问诊地点")
    private String place;

}
